package com.yuw.oophomework6;

public class EnglishStudent extends Student {
    // 演讲成绩
    private Double speakScore;


    @Override
    public Double calculateCourseScore() {
        Double score = null;

        score = MyUtils.getDaulbeValue(this.getSpeakScore()) * 0.5
                + MyUtils.getDaulbeValue(this.getMiddleScore()) * 0.25
                + MyUtils.getDaulbeValue(this.getMiddleScore()) * 0.25;

        return score == 0.0 ? null : score;

    }

    public Double getSpeakScore() {
        return speakScore;
    }

    public void setSpeakScore(Double speakScore) {
        this.speakScore = speakScore;
    }


}
